/*
 * @Description:
 * @Date: 2024-02-27 21:52:17
 * @LastEditTime: 2024-02-27 21:56:49
 * @FilePath: /pure-admin-thin/src/router/modules/product.ts
 */
const { VITE_HIDE_HOME } = import.meta.env;

export default {
  path: "/product",
  redirect: "/product/list",
  meta: {
    icon: "informationLine",
    title: "商品管理",
    // showLink: false,
    rank: 9
  },
  children: [
    {
      path: "/product/list",
      name: "ProductList",
      component: () => import("@/views/product/list.vue"),
      meta: {
        title: "列表",
        showLink: VITE_HIDE_HOME === "true" ? false : true
      }
    },
    {
      path: "/product/detail",
      name: "ProductDetail",
      component: () => import("@/views/product/detail.vue"),
      meta: {
        title: "详情",
        showLink: false
      }
    },
    {
      path: "/product/category",
      name: "ProductCategory",
      component: () => import("@/views/product/category.vue"),
      meta: {
        title: "分类",
        showLink: VITE_HIDE_HOME === "true" ? false : true
      }
    }
  ]
} as RouteConfigsTable;
